<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>华迅直购</title>
    <link rel="stylesheet" href="../../scss2/app.css">
    <script type="text/javascript" src="js/base/jquery-3.1.1.min.js?ver=2.0.4" charset="utf-8"></script>
    <script type="text/javascript" src="js/base/underscore-min.js"></script>
    <script src="js/base/api.js"></script>
    <script src="js/base/magiclamp.js"></script>
    <script src="js/base/base.js"></script>
    <script src="js/base/vue-filter.js"></script>
    <script src="js/base/vue.js"></script>
    <script src="./js/address.js"></script>
    <title>地址管理</title>
</head>
<body class="whitesmoke">
<div>
    <div id="address_list">
        <div class="app-title">地址管理</div>
        <div class="address-list" v-for="item in address_list" @click="choice_address(item.id)">
            <div class="address-top">
                <div>{{item.receiver_name}}</div>
                <div>{{item.receiver_phone}}</div>
            </div>
            <div class="address-desc">{{item.display_name}}</div>
            <div class="address-bottom">
                <label class="font-red" @change="set_default(address_default)">
                    <input class="address-radio" type="radio" :value="item.id" v-model="address_default">设为默认</label>
                <div>
                    <button @click="modefy_address(item.id)">修改</button>
                    <button @click="delete_address(item.id)">删除</button>
                </div>
            </div>
        </div>
        <button class="btn-address" @click="create_address">创建地址</button>
    </div>
</div>
</body>
</html>